<template>
	<view class="praise-box" v-if="props.itemData">
		<img src="@/assets/image/icon18.png" v-if="!props.itemData.IsLike">
		<img v-else
			src="@/assets/image/icon16.png"><text>{{props.itemData.LikeCount ? props.itemData.LikeCount : '赞'}}</text>
	</view>
</template>

<script setup>
	import {
		reactive,
		getCurrentInstance,
		onMounted
	} from "vue"
	import {
		getAuthorization,
		setAuthorization
	} from "@/utils/auth.js"
	import {
		onLoad
	} from '@dcloudio/uni-app'

	const props = defineProps(['itemData'])
	
	console.log(props);
</script>

<style lang="scss" scoped>
	.praise-box {
		display: flex;
		align-items: center;

		img {
			width: 48rpx;
			height: 48rpx;
		}

		text {
			font-size: 24rpx;
			margin-left: 10rpx;
			color: #999;
		}
	}
</style>
